//
//  MusicTableViewCell.m
//  MusicPlayer
//
//  Created by lanou3g on 16/5/11.
//  Copyright © 2016年 韩宏. All rights reserved.
//

#import "MusicTableViewCell.h"
#import <UIImageView+WebCache.h>

@interface MusicTableViewCell ()

@property (strong, nonatomic) IBOutlet UIImageView *musicImageView;
@property (strong, nonatomic) IBOutlet UILabel *musicName;
@property (strong, nonatomic) IBOutlet UILabel *singer;
@property (strong, nonatomic) IBOutlet UILabel *albumLabel;

@end

@implementation MusicTableViewCell

- (void)awakeFromNib {
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
}

/*
 *为cell赋值
 */
- (void)setValuesWithModel:(MusicInfo *)musicModel
{
    [self.musicImageView sd_setImageWithURL:[NSURL URLWithString:musicModel.picUrl] placeholderImage:[UIImage imageNamed:@"tiger"]];
    self.musicName.text = musicModel.name;
    self.singer.text = musicModel.singer;
    self.albumLabel.text = musicModel.album;
}

@end
